package com.castle.fortress.admin.rule.rule.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
/**
 * 规则表 实体类
 *
 * @author 
 * @since 2025-04-21
 */
@Data
@TableName("rule")
public class RuleEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 规则ID/主键
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 规则名称
	*/
	private String ruleName;
	/**
	 * 规则描述
	*/
	private String ruleDesc;
	/**
	 * 规则类型
	*/
	private String ruleType;
	/**
	 * 规则来源
	*/
	private String ruleSource;
	/**
	 * 风险级别
	*/
	private String riskLevel;
	/**
	 * 更新时间
	*/
	private Date updateTime;
	/**
	 * 消息内容
	*/
	private String message;
	/**
	 * 关联的场景ID
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long scenarioId;
	/**
	 * 创建人
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long createUser;
	/**
	 * 创建时间
	*/
	private Date createTime;
	/**
	 * 修改人
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long updateUser;
	/**
	 * 删除状态 YesNoEnum。 yes删除；no未删除
	*/
	private Integer isDeleted;
	@TableField(exist = false)
	/**
	* 关联的树形名称
	*/
	private String scenarioIdName;

}
